package com.dddd.blog.api.post.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("bms_subject_item")
@ApiModel(value = "SubjectItem对象", description = "")
@Data
public class SubjectItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("专题id")
    private Long subjectId;

    @ApiModelProperty("博客id")
    private Long postId;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("排序值")
    private Integer sort;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;


    @Override
    public String toString() {
        return "SubjectItem{" +
            "id=" + id +
            ", subjectId=" + subjectId +
            ", postId=" + postId +
            ", status=" + status +
            ", sort=" + sort +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
